﻿using System;
using System.Collections.Generic;
using FinanSoft.Utilities;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.EnterpriseServices;
using System.Web.Services;

namespace FinanSoft.Entities
{
    [DataContract]
    public class Currency
    {
        #region Attributes
        private String _symbol;
        private String _abbreviation;
        private String _name;
        private int _id;
        private double _toLocalCurrency;
        private Constants.CurrencyType _type;
        #endregion

        #region Properties
        [DataMember]
        public String Symbol
        {
            get
            {
                return _symbol;
            }
            set
            {
                _symbol = value;
            }
        }

        [DataMember]
        public String Abbreviation
        {
            get
            {
                return _abbreviation;
            }
            set
            {
                _abbreviation = value;
            }
        }

        [DataMember]
        public int Id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

        [DataMember]
        public double ToLocalCurrency
        {
            get
            {
                return _toLocalCurrency;
            }
            set
            {
                _toLocalCurrency = value;
            }
        }

        [DataMember]
        public Constants.CurrencyType Type
        {
            get
            {
                return _type;
            }
            set
            {
                _type = value;
            }
        }

        [DataMember]
        public String Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }
        #endregion Properties

        #region Constructor
        public Currency (String symbol, String abbreviation, int id, double toLocalCurrency, Constants.CurrencyType type, String name)
        {
            _symbol = symbol;
            _abbreviation = abbreviation;
            _id = id;
            _toLocalCurrency = toLocalCurrency;
            _type = type;
            _name = name;
        }
        #endregion
    }
}
